package com.example.lenovo.demo.view;

import android.os.Bundle;
import android.support.v4.app.Fragment;

/**
 * Created by Administrator on 2017/1/13.
 */

public class UserFgManager {
    public static Fragment getFragment(String type){
        Fragment fragment;
        Bundle bundle=new Bundle();
        switch (type){
            case "1":
                fragment=new UserVPOneFragment();
                bundle.putString("type",type);
                fragment.setArguments(bundle);
                break;
            case "2":
                fragment=new UserBaseFragment();
                bundle.putString("type",type);
                fragment.setArguments(bundle);
                break;
            case "3":
                fragment=new UserBaseFragment();
                bundle.putString("type",type);
                fragment.setArguments(bundle);
                break;
            default:
                fragment=new UserVPOneFragment();
                bundle.putString("type",type);
                fragment.setArguments(bundle);
                break;
        }
        return fragment;

    }
}
